package com.yang.flower.exception;

import lombok.Getter;

/**
 * @Description: 自定义异常
 * @Author: Yang
 * @DateTime: 2022/12/1 20:36
 **/
@Getter
public class ServiceException extends RuntimeException{
    private String code;

    public ServiceException(String code,String msg){
        super(msg);
        this.code = code;
    }
}
